package com.headwind.logistics.operation.service.impl;

import com.headwind.logistics.operation.dto.DepotWaybillTransportUserDto;
import com.headwind.logistics.operation.mapper.ManagementDaoInter;
import com.headwind.logistics.operation.service.inter.ManagementBizInter;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author 周鑫
 * @Date 2020/7/27 17:26
 * @Version 1.0
 * @DESCRIPTION 填写类作用描述
 */
@Service
public class ManagementBizImpl implements ManagementBizInter {

    @Resource
    ManagementDaoInter managementDaoInter;


    /**
     * 查询和分页
     * @return DepotWaybillTransportUserDto dto类
     */
    @Override
    public List<DepotWaybillTransportUserDto> queryMangentBizInter(@Param("page") Integer page, @Param("rows") Integer rows) {
        if (page != null){
            page = (page-1)*rows;
        }
        return managementDaoInter.queryManagmentDaoInter(page,rows);
    }
}
